package com.kacheap.plugin;

import org.pf4j.Plugin;
import org.pf4j.PluginWrapper;

@SuppressWarnings("deprecation")
public class JenkinsPlugin extends Plugin {
	private PluginWrapper wrapper;

	public JenkinsPlugin(PluginWrapper wrapper) {
		super(wrapper);
		this.wrapper = wrapper;
	}

	@Override
	public void start() {
		System.out.println(wrapper.getPluginId() + " ===> start()");
	}

	@Override
	public void stop() {
		System.out.println(wrapper.getPluginId() + " ===> stop()");
	}

	@Override
	public void delete() {
		System.out.println(wrapper.getPluginId() + " ===> delete()");
	}

//	@Extension
//	public class WelcomeGreeting implements Greeting {
//
//		@Override
//		public String getGreeting() {
//			return "Welcome, my name is ==> " + wrapper.getPluginId();
//		}
//
//	}

}
